package com.syqc.monitor.utils

import com.syqc.monitor.ui.fortify.FortifyActivity
import com.syqc.monitor.ui.simplemonitor.SimpleMonitorActivity
import com.syqc.monitor.ui.singlemap.SingleMapActivity
import com.syqc.comlib.MenuKey
import com.syqc.monitor.ui.ExteWebActivity
import com.syqc.monitor.ui.alarm.AdasAlarmActivity
import com.syqc.monitor.ui.alarm.AlarmsHandleActivity
import com.syqc.monitor.ui.alarm.NormalAlarmActivity
import com.syqc.monitor.ui.carmonitor.CarMonitorActivity
import com.syqc.monitor.ui.carsmonitor.MultiVehicleActivity
import com.syqc.monitor.ui.cost.FeeAddActivity
import com.syqc.monitor.ui.historyline.HistoryLineActivity
import com.syqc.monitor.ui.list.ListMonitorActivity
import com.syqc.monitor.ui.mile.MileActivity
import com.syqc.monitor.ui.newaddcar.AddCarActivity
import com.syqc.monitor.ui.photo.PhotosActivity
import com.syqc.monitor.ui.realalarm.RealAlarmActivity
import com.syqc.monitor.ui.repair.SubmitRepairActivity
import com.syqc.monitor.ui.sms.SmsCmdActivity
import com.syqc.monitor.ui.stopcar.StopCarActivity
import com.syqc.monitor.ui.text.TextSendActivity
import com.syqc.sensor.demp.DampActivity
import com.syqc.sensor.fwdrev.FwdRevActivity
import com.syqc.sensor.oil.ReportOilActivity
import com.syqc.sensor.recent.RecentOilActivity
import com.syqc.sensor.tdemp.ReportTempActivity
import com.syqc.sensor.water.ReportWaterActivity
import com.syqc.sensor.weight.ReportWeightActivity
import com.syqc.videos.VideotapeActivity
import com.syqc.videos.player.RealPlayerActivity

object ActivityUtil {
    fun getActivityByKey(key: String): Class<*> {
        return when (key) {
            MenuKey.MENU_101 -> MultiVehicleActivity::class.java
            MenuKey.MENU_102 -> ListMonitorActivity::class.java
            MenuKey.MENU_103 -> SingleMapActivity::class.java
            MenuKey.MENU_104 -> HistoryLineActivity::class.java
            MenuKey.MENU_105 -> RealAlarmActivity::class.java
            MenuKey.MENU_106 -> RealPlayerActivity::class.java
            MenuKey.MENU_107 -> VideotapeActivity::class.java
            MenuKey.MENU_109 -> CarMonitorActivity::class.java
            MenuKey.MENU_111 -> SimpleMonitorActivity::class.java
            MenuKey.MENU_201 -> MileActivity::class.java

            MenuKey.MENU_202 -> NormalAlarmActivity::class.java
            MenuKey.MENU_203 -> AdasAlarmActivity::class.java
            MenuKey.MENU_204 -> PhotosActivity::class.java
            MenuKey.MENU_205 -> StopCarActivity::class.java
            MenuKey.MENU_207 -> ReportOilActivity::class.java
            MenuKey.MENU_208 -> ReportWaterActivity::class.java
            MenuKey.MENU_209 -> ReportTempActivity::class.java
            MenuKey.MENU_210 -> DampActivity::class.java
            MenuKey.MENU_211 -> ReportWeightActivity::class.java
            MenuKey.MENU_229 -> RecentOilActivity::class.java
            MenuKey.MENU_230 -> FwdRevActivity::class.java


            MenuKey.MENU_902 -> FeeAddActivity::class.java
            MenuKey.MENU_903 -> FortifyActivity::class.java
            MenuKey.MENU_905 -> AddCarActivity::class.java
            MenuKey.MENU_907 -> TextSendActivity::class.java
            MenuKey.MENU_908 -> SmsCmdActivity::class.java
            MenuKey.MENU_912 -> SubmitRepairActivity::class.java
            MenuKey.MENU_917 -> AlarmsHandleActivity::class.java
            else -> ExteWebActivity::class.java
        }
    }
}
